package T;

public class Cuboid extends Rectangular{
    //成员变量
    private double height;

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    //成员方
    public double volume() {
        return height * getWidth() * getLength();
    }
}
